package com.util;

import java.util.Random;

/**
 * <p>
 *
 * @author: Yuanwl
 * @date: 2020/12/20 13:14
 */
public class RandomUtil {
    private static Random random = new Random();

    public static int getRoundRandomInt(int start, int end) {
        return random.nextInt(end - start + 1) + start; //获得[start, end]随机数
    }

    public static boolean getBoolean() {
        return random.nextBoolean();
    }
}
